using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace ICP_MS.Plugin.HPLC;

public class FormPrepare : Form
{
	private IContainer components = null;

	private Label label1;

	private Label lblSample;

	private Label label2;

	private Button btnOK;

	private Button btnCancel;

	public string Samplename { get; set; }

	public FormPrepare()
	{
		InitializeComponent();
	}

	private void FormUptake_Load(object sender, EventArgs e)
	{
		lblSample.Text = Samplename;
		Text = Samplename;
		label1.Text = Lang.Txt("HPLCForm.Text8");
		label2.Text = Lang.Txt("HPLCForm.Text9");
		btnOK.Text = Lang.Txt("FormSerial.OK");
		btnCancel.Text = Lang.Txt("FormSerial.Cancel");
		Win32API.SetTopMost((Control)this);
	}

	private void btnOK_Click(object sender, EventArgs e)
	{
		base.DialogResult = DialogResult.OK;
	}

	private void FormPrepare_FormClosing(object sender, FormClosingEventArgs e)
	{
	}

	private void btnCancel_Click(object sender, EventArgs e)
	{
		base.DialogResult = DialogResult.Cancel;
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.label1 = new System.Windows.Forms.Label();
		this.lblSample = new System.Windows.Forms.Label();
		this.label2 = new System.Windows.Forms.Label();
		this.btnOK = new System.Windows.Forms.Button();
		this.btnCancel = new System.Windows.Forms.Button();
		base.SuspendLayout();
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(69, 40);
		this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(119, 20);
		this.label1.TabIndex = 0;
		this.label1.Text = "准备样品...";
		this.lblSample.AutoSize = true;
		this.lblSample.Font = new System.Drawing.Font("宋体", 12f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
		this.lblSample.ForeColor = System.Drawing.Color.Blue;
		this.lblSample.Location = new System.Drawing.Point(173, 40);
		this.lblSample.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblSample.Name = "lblSample";
		this.lblSample.Size = new System.Drawing.Size(42, 20);
		this.lblSample.TabIndex = 1;
		this.lblSample.Text = "...";
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(92, 81);
		this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(229, 20);
		this.label2.TabIndex = 2;
		this.label2.Text = "按确认键后等待LC信号..";
		this.btnOK.Location = new System.Drawing.Point(258, 139);
		this.btnOK.Margin = new System.Windows.Forms.Padding(4);
		this.btnOK.Name = "btnOK";
		this.btnOK.Size = new System.Drawing.Size(78, 31);
		this.btnOK.TabIndex = 3;
		this.btnOK.Text = "确认";
		this.btnOK.UseVisualStyleBackColor = true;
		this.btnOK.Click += new System.EventHandler(btnOK_Click);
		this.btnCancel.Location = new System.Drawing.Point(372, 139);
		this.btnCancel.Margin = new System.Windows.Forms.Padding(4);
		this.btnCancel.Name = "btnCancel";
		this.btnCancel.Size = new System.Drawing.Size(78, 31);
		this.btnCancel.TabIndex = 3;
		this.btnCancel.Text = "取消";
		this.btnCancel.UseVisualStyleBackColor = true;
		this.btnCancel.Click += new System.EventHandler(btnCancel_Click);
		base.AutoScaleDimensions = new System.Drawing.SizeF(10f, 20f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(492, 191);
		base.Controls.Add(this.btnCancel);
		base.Controls.Add(this.btnOK);
		base.Controls.Add(this.label2);
		base.Controls.Add(this.lblSample);
		base.Controls.Add(this.label1);
		this.Font = new System.Drawing.Font("宋体", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
		base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
		base.Margin = new System.Windows.Forms.Padding(4);
		base.MaximizeBox = false;
		base.MinimizeBox = false;
		base.Name = "FormPrepare";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "准备样品";
		base.TopMost = true;
		base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormPrepare_FormClosing);
		base.Load += new System.EventHandler(FormUptake_Load);
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
